# vim:set noet ts=4:
#
# scim-python
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA  02111-1307  USA
#
# $Id: $
#
if HAVE_ENCHANT
scim_PYTHON =	\
	PinYin.py	\
	PYUtil.py	\
	PYParser.py	\
	PYSQLiteDB.py	\
	PYDictory.py	\
	PYCreatePinYinDB.py	\
	__init__.py	\
	$(NULL)

scimdir = $(pkgdatadir)/engine/PinYin

# PYDATA_FILES =	\
# 	utf8py.org	\
# 	utf8pyPhrase.org	\
# 	CharFreq-Modern_utf8.txt	\
# 	SogouLabDic-utf8.dic	\
# 	$(NULL)

PYDATA_FILES = 	\
	phrase_pinyin.txt.bz2	\
	pinyin_table.txt.bz2	\
	$(NULL)


pydb_DATA = py.db
pydbdir = $(pkgdatadir)/engine/PinYin

py.db: PYCreatePinYinDB.py PYSQLiteDB.py $(PYDATA_FILES)
	$(PYTHON) $(srcdir)/PYCreatePinYinDB.py $(srcdir)

endif

EXTRA_DIST = $(PYDATA_FILES)
DISTCLEANFILES = \
	py.db

install-data-hook:
uninstall-hook:

